package com.dt76.smallloanbackenduser.remote.xm;

import com.dt76.smallloanbackenduser.hystrix.xm.DashboardHystrix;
import com.dt76.smallloanbackenduser.pojo.afterloan.RepaymentInfo;
import com.dt76.smallloanbackenduser.pojo.xm.FcCheckState;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "smallloan-backend-service",fallback = DashboardHystrix.class)
public interface DashboardRemote {

    @RequestMapping("/xm/qryBorrowCount")
    int qryBorrowCount();

    @RequestMapping("/xm/qryBorrowMoney")
    List<FcCheckState> qryBorrowMoney();

    @RequestMapping("/xm/qryLoanMoney")
    List<RepaymentInfo> qryLoanMoney();

    @RequestMapping("/xm/qrySecondCount")
    int qrySecondCount();

    @RequestMapping("/xm/qryLaterCount")
    int qryLaterCount();

    @RequestMapping("/xm/qryLendCount")
    int qryLendCount();

    @RequestMapping("/xm/qryOverCount")
    int qryOverCount();
}
